// lib/models/group_detail_model.dart
class GroupDetail {
  final String id;
  final String name;
  final String qrCodeUrl;
  final String announcement;
  final String myNickname;
  final bool isTop;
  final String? cleanMessageTime;
  final List<GroupMember> members;

  GroupDetail({
    required this.id,
    required this.name,
    required this.qrCodeUrl,
    required this.announcement,
    required this.myNickname,
    required this.isTop,
    this.cleanMessageTime,
    required this.members,
  });
}

class GroupMember {
  final String id;
  final String name;
  final String avatarUrl;
  final bool isAdmin;

  GroupMember({
    required this.id,
    required this.name,
    required this.avatarUrl,
    required this.isAdmin,
  });
}
